
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Grebok.Common;
using Grebok.Common.Configuration;

namespace EVegetable.Persistence.Test.DataManager
{
    public class TeBiz_RecipientInfoManager : BaseManager
    {
        #region private field

        private static TeBiz_RecipientInfoManager manager;
        #endregion

        #region Properties
        
        public Int32 MemberID
        {
            get { return GetConfig<Int32>("MemberID"); }
            set { SetConfig<Int32>("MemberID", value); }
        }
        
        public String RecipientID
        {
            get { return GetConfig<String>("RecipientID"); }
            set { SetConfig<String>("RecipientID", value); }
        }
        
        public String ReciName
        {
            get { return GetConfig<String>("ReciName"); }
            set { SetConfig<String>("ReciName", value); }
        }
        
        public String ReciMobNum
        {
            get { return GetConfig<String>("ReciMobNum"); }
            set { SetConfig<String>("ReciMobNum", value); }
        }
        
        public String ReciFixNum
        {
            get { return GetConfig<String>("ReciFixNum"); }
            set { SetConfig<String>("ReciFixNum", value); }
        }
        
        public String ShippingAddress
        {
            get { return GetConfig<String>("ShippingAddress"); }
            set { SetConfig<String>("ShippingAddress", value); }
        }
        
        public String DeliveryDate
        {
            get { return GetConfig<String>("DeliveryDate"); }
            set { SetConfig<String>("DeliveryDate", value); }
        }
        

        #endregion

        #region Constructor

        /// <summary>
        /// TeBiz_RecipientInfoManager
        /// </summary>
        private TeBiz_RecipientInfoManager()
        {
            IApplicationConfiguration configuration = ApplicationConfigurationFactor.CreateApplicationConfiguration();
            appPropertiese = new ApplicationProperties(configuration[PropertiesConst.TEBIZ_RECIPIENTINFO_PROPERTIES_FILE_NAME_KEY],
                configuration[PropertiesConst.TEBIZ_RECIPIENTINFO_PROPERTIES_SECTION_NAME_KEY]);

            appPropertieseValues = new Dictionary<string, object>();
        }
        #endregion

        #region TeBiz_RecipientInfoManager Instance

        /// <summary>
        /// TeBiz_RecipientInfoManager's Instance
        /// </summary>
        public static TeBiz_RecipientInfoManager Instance
        {
            get
            {
                if (manager == null)
                {
                    manager = new TeBiz_RecipientInfoManager();
                }
                return manager;
            }
        }
        #endregion

    }
}
